package com.dongdong.bookstore.module.pms.service;

import com.dongdong.bookstore.module.pms.dto.BookCategoryDto;
import com.dongdong.bookstore.module.pms.dto.BookCategroyNode;
import com.dongdong.bookstore.module.pms.model.BookCategory;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 书籍分类表 服务类
 * </p>
 *
 * @author chiangkai
 * @since 2021-10-31
 */
public interface BookCategoryService extends IService<BookCategory> {

    boolean create(BookCategoryDto dto);

    boolean update(Long id,BookCategoryDto target);

    List<BookCategroyNode> listTree();
}
